package com.shop.vuedemo.test;

/**
 * projectName: vueDemo
 * create on 2021/11/20 22:57
 *
 * @author yanbl
 * @Description :
 */
@TestAnnotation("Class Student")
public class Student {

    @TestAnnotation("constance field")
    public static final String CLASS_NAME = "Student";

    @TestAnnotation("field")
    public String name;

    @TestAnnotation("constructor")
    public Student(String name) {
        this.name = name;
    }

    @TestAnnotation("getter")
    public String getName() {
        return name;
    }

    @TestAnnotation("setter")
    public void setName(String name) {
        this.name = name;
    }

    @TestAnnotation("public method")
    public void printName() {
        System.out.println(name);
    }

    @TestAnnotation("public method with parameter")
    public void printName(@TestAnnotation("param")String name) {
        System.out.println(name);
    }

}
